 <?php 
if(!isset($_SESSION)) 
{ 
	session_start(); 
}
?>
 <script type="text/javascript">
<!--
$(function() {
	 var checkexistus = '<?=$_SESSION['iduser']?>';
	if(checkexistus==''){
		admin_logout();
		}
});
function admin_logout(){
	window.location="../view_logout.php?changepage=search";
}
function onclickAdmin(){
	window.location="../admin/content-monitor-admin.php?monitor=<?=$monitor?>&monitorname=<?=$monitorname?>";
}
function onclickView(){
	window.location="../index.php?viewaction=none";
}
//-->
</script>
 <div id="menu">
    	<ul class="amenu" >
        	<li style="background:#1e7bbd"><a href="searchcarnums.php?monitor=<?=$monitor?>"><input class="csssearchchoose" type="button"/></a></li>
        	<?php if (isset($_SESSION['role'])){  if ($_SESSION['role']=="Admin"){?>
            	<li><a onclick="onclickAdmin()"><input class="cssadmin" type="button"/></a></li>
             <?php }else{} }?>
            <li style="width:215px"><a onclick="onclickView();"><input class="cssview" type="button"/></a>
            <select class="seltopadmin" style="vertical-align:middle; margin-left:10px; " disabled="disabled">
            	<option><?php echo  $monitorname;?></option>
            </select>
            </li>
            <li><a onclick="admin_logout()"><input class="csslogout" type="button"/></a></li>
        </ul>
         <div class="clear"></div>
    </div>
